package com.tiger.easyrpc.core.urlstrategy;

public class PollingStrategy implements IStrategy{
    private volatile int index = 0;
    @Override
    public String select(String[] url) {
        if(url == null || url.length == 0){
            return null;
        }
        return url[index++ % url.length];
    }
}
